package conson.tech.manage.coupons.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import conson.tech.core.response.Response;
import conson.tech.manage.coupons.entity.dto.CouponsGrantDto;
import conson.tech.manage.coupons.entity.vo.CouponsGrantInformationVo;
import conson.tech.manage.coupons.entity.vo.CouponsGrantLogVo;
import conson.tech.manage.coupons.entity.vo.CouponsGrantVo;

/**
 * InterfaceName: CouponsService
 * Description:
 * Author: ZYF
 * Date: 2020/7/21
 * Version: 1.0
 */
public interface CouponsGrantService {

    /**
     * 分页查询优惠券列表信息
     */
    Page<CouponsGrantVo> queryList(Integer pageIndex, Integer pageSize, CouponsGrantDto dto);

    /**
     * 作废优惠券
     */
    Response cancellationCoupons(String couponsCode,String userName,Long userId);


    /**
     *查询全流程的日志-优惠券信息
     */
    CouponsGrantInformationVo cancellationCouponsInformation(String couponsCode);

    /**
     * 查询全流程日志-日志信息
     */
    Page<CouponsGrantLogVo> cancellationCouponsLog(Integer pageIndex, Integer pageSize, String couponsCode);
}
